<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录页</title>
    <!-- 引入layui -->
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/assets/css/wdf.css">
</head>
<body>
    <!--  设置一个最大的容器 -->
        <div class="rq-big">
            <!-- 图片 -->
            <div class="tp-left"></div>
            <!-- 登录区 -->
            <div class="wa-right">
                <div class="box">
                    <!-- 登录区域 -->
                    <div class="dl-top">
                <form class="layui-form" id="login-form" lay-filter="login-form">
                    <!-- 输入框 -->
                    <h2>登录</h2>
                    <div class="layui-form-item">
                        <i class="layui-icon layui-icon-username"></i>
                    <input 
                    class="layui-input"
                    type="text"
                    name="username"
                    placeholder="亲输入用户名"
                    autocomplete="off"
                    lay-verify="required|username"
                    >
                    </div>
                    <!-- 密码 -->
                    <div class="layui-form-item">
                        <i class="layui-icon layui-icon-password"></i>
                    <input 
                    class="layui-input"
                    type="password"
                    name="password"
                    placeholder="亲输入密码"
                    lay-verify="required|password"
                    >
                    </div>
                    <!-- 登录按钮 -->
                    <div class="layui-form-item">
                        <button lay-submit class="layui-btn layui-btn-fluid layui-btn-normal">登录</button>
                    </div>
                    <!-- 去注册 -->
                    <div class="layui-form-item item-link">
                        <a href="#" id="go-reg">注册账号</a>
                    </div>
                </form>
                    </div>
                    <!-- 注册区域 -->
                    <div class="dl-bottom">
                        <form class="layui-form" id="reg-form" lay-filter="reg-form">
                            <h2>注册</h2>
                            <!-- 用户名 -->
                            <div class="layui-form-item">
                                <!-- 图标 -->
                                <i class="layui-icon layui-icon-username"></i>
                                <!-- 输入框  lay-verify添加验证规则-->
                                <input 
                                    class="layui-input"
                                    type="text" 
                                    name="username"
                                    placeholder="请输入用户名"
                                    autocomplete="off"
                                    required
                                    lay-verify="required||username"
                                >
                            </div>
                            <!-- 密码框 -->
                            <div class="layui-form-item">
                                <!-- 图标 -->
                                <i class="layui-icon layui-icon-password"></i>
                                <!-- 输入框 -->
                                <input 
                                    class="layui-input"
                                    type="password" 
                                    name="password"
                                    placeholder="请输入密码"
                                    required
                                    lay-verify="required||password"
                                >
                            </div>
                            <!-- 确认密码框 -->
                            <div class="layui-form-item">
                                <!-- 图标 -->
                                <i class="layui-icon layui-icon-password"></i>
                                <!-- 输入框 -->
                                <input 
                                    class="layui-input"
                                    type="password" 
                                    name="rpPassword"
                                    placeholder="请再次输入密码"
                                    required
                                    lay-verify="required|password|rpPassword"
                                >
                            </div>
                            <!-- 按钮 -->
                            <div class="layui-form-item">
                                <!-- lay-submit触发验证 -->
                                <button lay-submit class="layui-btn layui-btn-fluid layui-btn-normal">注册</button>
                            </div>
                            <!-- 去登录 -->
                            <div class="layui-form-item item-link">
                                <a href="#" id="go-login">登录账号</a>
                            </div>
                        </form>
                    </div>
                </div>
                
            </div>
        </div>


    <!-- 引入layui.js -->
    <script src="/assets/lib/layui/layui.all.js"></script>
            <!-- 引入jquert.js -->
    <script src="/assets/lib/jquery.js"></script>
    <script src="/assets/js/wdfy.js"></script>
</body>
</html>